﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace J.StatusModel
{
    /// <summary>
    /// 房号管理表
    /// </summary>
    [Table("RoomNumManage")]
    public class RoomNumManage
    {
        /// <summary>
        /// 房号管理主键
        /// </summary>
        [Key]
        public int ID { get; set; }
        /// <summary>
        /// 房型编号
        /// </summary>
        public int RoomId { get; set; }
        /// <summary>
        /// 房号
        /// </summary>
        public int RoomNumber { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Comment { get; set; }
        /// <summary>
        /// 是否上架
        /// </summary>
        public int? IsShelf { get; set; } = 1;
        /// <summary>
        /// 房态
        /// </summary>
        public RoomState RoomState { get; set; }
        /// <summary>
        /// 更多房态
        /// </summary>
        public RoomStates RoomStates { get; set; }
    }
    /// <summary>
    /// 房态枚举
    /// </summary>
    public enum RoomState
    {
        空房=1,在住,预定,保留
    }
    /// <summary>
    /// 更多房态
    /// </summary>
    public enum RoomStates
    {
        净房=1,脏房,维修
    }
}
